﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenPhotoAlbum.Controls
{
    public class MultiLineListView: ListView
    {
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            this.Style[System.Web.UI.HtmlTextWriterStyle.Display] = "block";
            this.Style[System.Web.UI.HtmlTextWriterStyle.Width] = Width.ToString();
            this.Style[System.Web.UI.HtmlTextWriterStyle.WhiteSpace] = "normal";
        }
    }
}
